﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewMonthTask.aspx.cs" Inherits="UDS.SubModule.Schedule.ViewMonthTask" %>
<%@ Register Namespace="DataControls" Assembly="DataCalendar" TagPrefix="dc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<script language="javascript">
		function dialwinprocess(CurrDate,CurrTime,whichPg,TaskID)
			{
			   if(whichPg==1)
				var newdialoguewin = window.showModalDialog("Manage.aspx?CurrDate="+CurrDate+"&CurrTime="+CurrTime,window,"dialogWidth:1000px;DialogHeight=700px;status:no");
			   else if(whichPg==2)
			   var newdialoguewin = window.showModalDialog("TaskDetail.aspx?TaskID="+TaskID+"&Date="+CurrDate,window,"dialogWidth:700px;DialogHeight=600px;status:no");
			   else if(whichPg==3)
			   var newdialoguewin = window.showModalDialog("TaskStatus.aspx?TaskID="+TaskID+"&Date="+CurrDate,window,"dialogWidth:700px;DialogHeight=600px;status:no");
			}
	


			
		var ball1 = new Image();
		var ball2 = new Image();
		ball1.src = 'images/ball1.gif';
		ball2.src = 'images/ball2.gif';

		var active = new Image();
		var nonactive = new Image();
		active.src = '../../../images/maillistbutton2.gif';
		nonactive.src = '../../../images/maillistbutton1.gif';

		function onMouseOver(img)
		{
			document.images[img].src = ball2.src;
		}

		function onMouseOut(img)
		{
			document.images[img].src = ball1.src;
		}

		function onOverBar(bar)
		{
			if (bar != null) {
				bar.style.backgroundImage = "url("+active.src+")";
				
			}
		}

		function onOutBar(bar)
		{
			if (bar != null) {
				bar.style.backgroundImage = "url("+nonactive.src+")";
			}
		}
		
		function selectAll(){
			var len=document.MailList.elements.length;
			var i;
		    for (i=0;i<len;i++){
			if (document.MailList.elements[i].type=="checkbox"){
		        document.MailList.elements[i].checked=true;								
						 }
					}
				}

		function unSelectAll(){
	          var len=document.MailList.elements.length;
	          var i;
	          for (i=0;i<len;i++){
	               if (document.MailList.elements[i].type=="checkbox"){
	                  document.MailList.elements[i].checked=false; 
	               }   
	        	 } 
		    }		

		</script>
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;<asp:Button ID="btnReturn" runat="server" class="redButtonCss" style="width: 60px; height: 20px" Text=" 返 回 " OnClick="btnReturn_Click" />
     <dc:datacalendar id="cal1" runat="server" width="100%" dayfield="Date" visibledate="6/1/2009" OnVisibleMonthChanged="MonthChange" >

                <DayStyle HorizontalAlign="Left" VerticalAlign="Top"
                          Font-Size="8" Font-Name="Arial" BackColor="lightYellow" />
                          
                <OtherMonthDayStyle BackColor="LightGray" ForeColor="DarkGray"
                           />

                <ItemTemplate>
                    <br />           
                          <a href="#" onclick='javascript:return dialwinprocess("<%# Container.DataItem["Date"] %>","","2","<%# Container.DataItem["TaskID"] %>")'>
											             
                        <img src='../../Dataimages/ico_note.gif' align="absmiddle" border="0"/>
                        <font color='blue'>
                        
                            <%# Container.DataItem["Subject"] %>
                        </font></a>   
                </ItemTemplate>
                
                <NoEventsTemplate>
                    <br />
                    <br />
                    <br />
                    <br />
                    <br />
                </NoEventsTemplate>
                
            </dc:datacalendar>
    
    </div>
    </form>
</body>
</html>
